import { createSSRApp } from 'vue'
// import pinia from './stores'
// import uviewPlus from 'uview-plus'
import App from './App.vue'
// 引入组件工具库
import uvUI from '@climblee/uv-ui'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// uni.$u.config.unit = 'rpx'
import share from '@/utils/share.js'
export function createApp() {
    const app = createSSRApp(App)
    const pinia = createPinia()
    pinia.use(piniaPluginPersistedstate)
    app.use(pinia)
    app.use(uvUI); // 引入组件库
    // app.use(uviewPlus)
    // uni.$u.config.unit = 'rpx'
    // app.mixin(share)
    return {
        app,
    }
}
